<?php


namespace app\common\model;


class FriendApply extends BaseModel{

    protected $updateTime = false;

    public function applyUser(){
        return $this->belongsTo('User','apply_user_id','id')->field('id,nickname,mobile,avatar,level,gender,education');
    }

    public function toUser(){
        return $this->belongsTo('User','to_user_id','id')->field('id,nickname,mobile,avatar,level,gender,education');
    }
}